GtkFontSelection: derive from GtkBox, not GtkVBox
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 22:34:57 +0000 (18:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 22:34:57 +0000 (18:34 -0400)
gtk/gtkfontsel.c
gtk/gtkfontsel.h

index a022ed33c05caca1089afaa3781851dc3f10cff2..1f3c6e2fcb3d8df251e84817dc483a353beb2ead 100644 (file)
 #include "gtktable.h"
 #include "gtktreeselection.h"
 #include "gtktreeview.h"
-#include "gtkvbox.h"
 #include "gtkscrolledwindow.h"
 #include "gtkintl.h"
 #include "gtkaccessible.h"
 #include "gtkbuildable.h"
+#include "gtkorientable.h"
 #include "gtkprivate.h"
 
 
@@ -220,7 +220,7 @@ static void     gtk_font_selection_ref_family            (GtkFontSelection *font
 static void     gtk_font_selection_ref_face              (GtkFontSelection *fontsel,
                                                          PangoFontFace    *face);
 
-G_DEFINE_TYPE (GtkFontSelection, gtk_font_selection, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GtkFontSelection, gtk_font_selection, GTK_TYPE_BOX)
 
 static void
 gtk_font_selection_class_init (GtkFontSelectionClass *klass)
@@ -345,6 +345,9 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
                                                GtkFontSelectionPrivate);
   priv = fontsel->priv;
 
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (fontsel),
+                                  GTK_ORIENTATION_VERTICAL);
+
   gtk_widget_push_composite_child ();
 
   gtk_box_set_spacing (GTK_BOX (fontsel), 12);
index e481b6f81b953880fd3b5ef42bf0de115ab72c43..1bf2907847ca7897c2fce36fc4a1d00daf891727 100644 (file)
@@ -37,7 +37,7 @@
 
 
 #include <gtk/gtkdialog.h>
-#include <gtk/gtkvbox.h>
+#include <gtk/gtkbox.h>
 
 
 G_BEGIN_DECLS
@@ -68,7 +68,7 @@ typedef struct _GtkFontSelectionDialogClass         GtkFontSelectionDialogClass;
 
 struct _GtkFontSelection
 {
-  GtkVBox parent_instance;
+  GtkBox parent_instance;
 
   /*< private >*/
   GtkFontSelectionPrivate *priv;
@@ -76,7 +76,7 @@ struct _GtkFontSelection
 
 struct _GtkFontSelectionClass
 {
-  GtkVBoxClass parent_class;
+  GtkBoxClass parent_class;
 
   /* Padding for future expansion */
   void (*_gtk_reserved1) (void);